// 封装token本地存储模块

const TOKEN_KEY = "article-management-system-token"

// 1.存储
export const setToken = (token) => {
    localStorage.setItem(TOKEN_KEY, token);
}

// 2.获取
export const getToken = () => {
    return localStorage.getItem(TOKEN_KEY)
}

// 3.删除
export const removeToken = () => {
    localStorage.removeItem(TOKEN_KEY)
}




















